<?php
include 'load.php';

$count = $snsdb->get_var("select count(*) from sns_acount where uid='".$_POST['uid']."' and acount_id='".$_POST['acount_id']."'");
if($count == '0'){
	$snsdb->insert('sns_acount', $_POST);
	$id = $snsdb->insert_id;
	echo '0:已成功保存！'.":".$id;
}else{
	echo "1:您已经存在该账户。";
}
?>